package com.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.entity.PurchaseDetail;
import com.mapper.PurchaseDetailMapper;
import com.service.PurchaseDetailService;
@Service
public class PurchaseDetailServiceImpl implements PurchaseDetailService {
	@Autowired
	PurchaseDetailMapper detailMapper;
	public List<PurchaseDetail> selectByPrimaryKey(int id) {
		// TODO Auto-generated method stub
		return detailMapper.selectByPrimaryKey(id);
	}
	public int insert(PurchaseDetail purchaseDetail) {
		// TODO Auto-generated method stub
		return detailMapper.insert(purchaseDetail);
	}
	public int deleteByPrimaryKey(int id) {
		// TODO Auto-generated method stub
		return detailMapper.deleteByPrimaryKey(id);
	}
	public PurchaseDetail selectByPrimaryKeys(int id) {
		// TODO Auto-generated method stub
		return detailMapper.selectByPrimaryKeys(id);
	}

}
